package com.itheima.day13.thread.test9;

import java.util.concurrent.FutureTask;

public class TestMyCallable {
    public static void main(String[] args) {
        TicketMyCallable tmc = new TicketMyCallable();
        FutureTask<String> ft = new FutureTask<>(tmc);

        Thread t1 = new Thread(ft);
        Thread t2 = new Thread(ft);
        Thread t3 = new Thread(ft);
        t1.setName("一号窗口");
        t2.setName("二号窗口");
        t3.setName("三号窗口");
        t1.start();
        t2.start();
        t3.start();
    }
}
